<template>
  <div>
    Child1
    <p>
      <!-- dispatch是触发异步 -->
      <button @click="$store.dispatch('asyncMinus', 2)">异步减-2</button>&nbsp;
      &nbsp;
      <!-- commit是触发同步 -->
      <button @click="$store.commit('add', 3)">同步+3</button>
    </p>
  </div>
</template>
